﻿using furion.blog.Application.CustomMapper;
using furion.blog.Domain.Shared.Dto.User;
using Furion.DependencyInjection;
using Mapster;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Web.Core
{
    /// <summary>
    /// 自定义实体映射
    /// </summary>
    public class Mapper : IRegister
    {
        public void Register(TypeAdapterConfig config)
        {
            /*config.ForType<Entity, Dto>()
                .Map(dest => dest.FullName, src => src.FirstName + src.LastName)
                .Map(dest => dest.IdCard, src => src.IdCard.Replace("1234", "****"));*/
            Console.WriteLine("开始初始化Mapper....");
          
        }
    }
}
